package com.cn;

public class Student {
    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
        System.out.println("第一次"+this.ageF);
    }

    private int age = 20; //声明int类型变量age(属性)
    String name = "王小二"; //声明String类型变量name(属性)

    public void sing(){    //声明方法函数(行为)
        System.out.println("我是歌王！");
    }
}
